package com.tools.scanner.utils

import android.widget.Toast

object ToastUtil {

    fun showToast(resId: Int) {
        ActivityStack.popActivity()?.let {
            Toast.makeText(it, resId, Toast.LENGTH_SHORT).show()
        }
    }

    fun showToast(content: String) {
        ActivityStack.popActivity()?.let {
            Toast.makeText(it, content, Toast.LENGTH_SHORT).show()
        }
    }

}